package com.cgsrp.cgsrp_shopping.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.cgsrp.cgsrp_shopping.dao.OrderCartMapper;
import com.cgsrp.cgsrp_shopping.domain.OrderCart;
import com.cgsrp.cgsrp_shopping.service.OrderCartService;
@Service
public class OrderCartServiceImpl implements OrderCartService{

    @Resource
    private OrderCartMapper orderCartMapper;

    @Override
    public int deleteByPrimaryKey(Long orderId,Integer cartId) {
        return orderCartMapper.deleteByPrimaryKey(orderId,cartId);
    }

    @Override
    public int insert(OrderCart record) {
        return orderCartMapper.insert(record);
    }

    @Override
    public int insertSelective(OrderCart record) {
        return orderCartMapper.insertSelective(record);
    }

}
